Replace ASP tags with blank <% anything %>
<script language=JavaScript>
var theString
theString = "<html> vikrant </html> <% cieling 'done 'dfsfd
%> <div>rahesh </div> <% goahed %> <b>vik </b>";
theString = theString.replace(/<%.*?%>/gi,' ');
alert (theString);
</script>
HELP URL : http://www.sitepoint.com/print/expressions-javascript
No comments:
Post a Comment